<?php
/*
Plugin Name: BuddyPress Ticketing
Version: 0.1
Requires at least: WP 3.0, BuddyPress 1.2.5
Tested up to: WP 3.0, BuddyPress 1.2.6
Author: Paul Gibbs
Author URI: http://byotos.com
Site Wide Only: true
Network: true
Domain Path: /includes/languages/
Text Domain: bpt
*/

/* Only load the component if BuddyPress is loaded and initialized. */
function bpt_init() {
	global $wpdb;

	require( dirname( __FILE__ ) . '/includes/bpt-core.php' );

	// TODO: do install/upgrade properly.
	if ( !get_blog_option( BP_ROOT_BLOG, 'bpt' ) )
		update_blog_option( BP_ROOT_BLOG, 'bpt', array( 'is_installed' => true ) );
}
add_action( 'bp_include', 'bpt_init' );
?>